<div ng-click="enterEditMode()"
     ng-form="innerForm"
     ng-class="{ dirty: params.dirty }">

  &nbsp;<span ng-show="!editMode">{{ params.value | localizeDate:'dateTime'  }}</span>
  <i class="edit fa fa-pencil-square" ng-show="!editMode" ng-focus="enterEditMode()" tabindex="{{ params.tabindex }}"></i>

  <input ng-keyup="keyUp($event)"
         type="text"
         datetimepicker
         ng-model="params.value"
         editMode="false"
         tabindex="{{ params.tabindex }}"
         select="submit()"
                                                                                                            ng-show="editMode" ng-required="params.required" name="{{ params.name }}"/>
</div>
